Assignemnt #124 and 125th program
Code
///Name: Derrick Andreasen
///Period: 7
///Program name: 125th Program
///File name: Hund24prog.java
///Date Finished:5/11/2016
import java.io.File;
import java.util.Scanner;
public class Hund24prog
{
public static void main( String[] args ) throws Exception
{
System.out.println( "" );
int a, b, c;
Scanner fileIn = new Scanner(new File("3nums.txt"));
a = fileIn.nextInt();
b = fileIn.nextInt();
c = fileIn.nextInt();
fileIn.close();
int sum = a + b + c;
System.out.println( "\n" + a + " + " + b + " + " + c + " = " + sum );
System.out.println( "" );
}
}
Picture of the output